// import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
// import { useFonts } from 'expo-font';
import { Stack } from 'expo-router'
// import * as SplashScreen from 'expo-splash-screen';
// import { StatusBar } from 'expo-status-bar';
// import { useEffect } from 'react';
// import 'react-native-reanimated';

// import { useColorScheme } from '@/hooks/useColorScheme';

// Prevent the splash screen from auto-hiding before asset loading is complete.
// SplashScreen.preventAutoHideAsync();
/*import { createNativeStackNavigator } from  '@react-navigation/native-stack'*/
// import { createNativeStackNavigator } from '@react-navigation/native-stack'
/* import AddressLayout from '@/app/address/_layout'; 
const Stack = createNativeStackNavigator() */
export default function RootLayout() {
  // const colorScheme = useColorScheme();
  // const [loaded] = useFonts({
  //   SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'),
  // });

  // useEffect(() => {
  //   if (loaded) {
  //     SplashScreen.hideAsync();
  //   }
  // }, [loaded]);

  // if (!loaded) {
  //   return null;
  // }

  return (
    // <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
    <Stack>
      <Stack.Screen name="(tabs)" options={{ headerShown: false }} />
      <Stack.Screen name="+not-found" />
      <Stack.Screen name="login" options={{ headerShown: false }} />
     <Stack.Screen name="address"  options={{ headerShown: false}}  /> 
     <Stack.Screen name="setting"  options={{ headerShown: false }}  /> 
      <Stack.Screen name="shopping" options={{ headerShown: false }} />
      <Stack.Screen name="home" options={{ headerShown: false }} />
      <Stack.Screen name="info" options={{ headerShown: false }} />
      <Stack.Screen name="production" options={{ headerShown: false }} />

      {/* <Stack.Screen name="info" options={{ headerShown: false }} /> */}
    </Stack>
    // <StatusBar style="auto" />
    // </ThemeProvider>
  )
}
